package io;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

/**
 * 缓冲字符输入流读取文本数据
 */
public class BRDemo {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("hw1.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br = new BufferedReader(isr);

        String line;
        String[] len ;
        while ((line = br.readLine())!=null){
            System.out.println(line);

        }
        br.close();

    }
}
